import Vue from 'vue'
import VueRouter from 'vue-router'
import axios from 'axios'
import Mint from 'mint-ui';
import Index from './index.vue'
import inforList from './views/inforList.vue'
import articleList from './views/articleList.vue'
import articleListDetail from './views/articleListDetail.vue'
import videoList from './views/videoList.vue'
import '../../assets/less/base.less'
import fn from'../util/fn'
import 'mint-ui/lib/style.css'
import 'video.js/dist/video-js.css'

Vue.use(VueRouter);
Vue.use(Mint);
Vue.use(fn);

Vue.config.productionTip = false
axios.defaults.baseURL = 'http://wyds.91wangjing.com/';
const routes = [
    { path: '/inforList', component: inforList },
    { path: '/articleList', component: articleList },
    { path: '/articleListDetail', component: articleListDetail },
    { path: '/videoList', component: videoList },
    { path: '*', redirect: '/inforList' }

]

const router = new VueRouter({
    routes
});

new Vue({
    el: '#app',
    data() {
        return {
            tabIndex: null
        }
    },
    router,
    template: '<Index/>',
    components: { Index }
})
